html,
body,
* {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    Helvetica Neue,
    Helvetica,
    Segoe UI,
    Arial,
    Roboto,
    PingFang SC,
    miui,
    Hiragino Sans GB,
    Microsoft Yahei,
    sans-serif;
}

body {
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: var(--color-text-primary);
}

a:hover {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none !important;
}

img,
.img-contain {
  object-fit: contain;
}

.img-cover {
  object-fit: cover;
}

input,
textarea {
  outline: none;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-absolute-leftTop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.position-absolute-leftBottom {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.position-absolute-rightTop {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.position-absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.position-absolute-rightTop-5 {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 1;
}

.position-absolute-rightBottom {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
}

/* 禁止选择复制 */
.no-select,
.no-select * {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* 标准语法 */
}

/* 隐藏元素 */
.hide-none {
  display: none;
}

.hide-none-important {
  display: none !important;
}

/* 隐藏滚动条 */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* 聚焦不显示下划线 */
.hover-decoration-none:hover {
  text-decoration: none !important;
}

/* 显示块类型 */
.display-block {
  display: block;
}

.display-none {
  display: none;
}

.display-inline-block {
  display: inline-block;
}

/********************************* 自定义弹性布局 ***********************/
.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

.flex-4 {
  flex: 4;
}

.flex-5 {
  flex: 5;
}

.flex-6 {
  flex: 6;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.justify-between {
  display: flex;
  justify-content: space-between;
}

.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: end;
}

.justify-start {
  display: flex;
  justify-content: start;
}

.justify-around {
  display: flex;
  justify-content: space-around;
}

.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}

.align-center {
  display: flex;
  align-items: center;
}

.align-start {
  display: flex;
  align-items: start;
}

.align-end {
  display: flex;
  align-items: end;
}

.align-self-start {
  align-self: flex-start;
}

.align-self-end {
  align-self: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.white-space-nowrap {
  white-space: nowrap;
}

/* 拆分单词换行 */
.word-break-all {
  word-break: break-all;
}

.flex-gap-5 {
  gap: 5px;
}

.flex-gap-10 {
  gap: 10px;
}

.flex-gap-15 {
  gap: 15px;
}

.flex-gap-20 {
  gap: 20px;
}

.flex-gap-30 {
  gap: 30px;
}

.flex-gap-40 {
  gap: 40px;
}

/* 宽度100% */
.full-width {
  width: 100%;
}

/* 宽度50% */
.half-width {
  width: 50%;
}

/* 高度100% */
.full-height {
  height: 100%;
}

/* 宽带为0 */
.width-0 {
  width: 0;
}

.height-0 {
  height: 0;
}

.flex-order-0 {
  order: 0;
}

.flex-order-1 {
  order: 1;
}

.flex-order-2 {
  order: 2;
}

.flex-order-3 {
  order: 3;
}

.flex-order-4 {
  order: 4;
}

.flex-order-5 {
  order: 5;
}

/********************************* 背景颜色 ***********************/
/* --background-primary: #F8F8F8; */
.bg-primary {
  background-color: var(--background-primary);
}

/* --background-regular: white; */
.bg-regular {
  background-color: var(--background-regular);
}

/* --color-primary: #3879F1; */
.bg-theme-color {
  background-color: var(--color-primary);
}

/* 审核中 */
.bg-state-process {
  color: white;
  background-color: var(--color-primary);
}

/* 审核未通过 */
.bg-state-danger {
  color: white;
  background-color: #d74646;
}

/********************************* 字体颜色 ***********************/
/* --color-text-primary: #333333; */
.text-color-primary {
  color: var(--color-text-primary);
}

/* --color-text-regular: #666666; */
.text-color-regular {
  color: var(--color-text-regular);
}

/* --color-text-secondary: #999999; */
.text-color-secondary {
  color: var(--color-text-secondary);
}

/* --color-text-placeholder: #C0C4CC; */
.text-placeholder {
  color: var(--color-text-placeholder);
}

/* --color-primary: #3879F1; */
.text-theme-primary {
  color: var(--color-primary);
}

.text-white {
  color: #ffffff;
}

.text-black {
  color: #000000;
}

.text-red {
  color: #ff0000;
}

.text-orange {
  color: #ff6261;
}

.text-gray {
  color: #999999;
}

.text-green {
  color: #27ae60;
}

.text-blue {
  color: #0287fc;
}

/********************************* 字体大小 ***********************/
/* --font-size-min: 11px; */
.font-size-s {
  font-size: var(--font-size-s);
}

.font-size-sx {
  font-size: 8px;
}

/* --font-size-min: 12px; */
.font-size-min {
  font-size: var(--font-size-min);
}

/* --font-size-small: 14px; */
.font-size-small {
  font-size: var(--font-size-small);
}

/* --font-size-normal: 16px; */
.font-size-normal {
  font-size: var(--font-size-normal);
}

/* --font-size-big: 18px; */
.font-size-big {
  font-size: var(--font-size-big);
}

/* --font-size-huge: 20px; */
.font-size-huge {
  font-size: var(--font-size-huge);
}

/********************************** 字体粗细 ************************/
/* 字体加粗 */
.font-weight-bold {
  font-weight: bold;
}

/* 正常粗细 */
.font-weight-normal {
  font-weight: normal;
}

.font-weight-lighter {
  font-weight: lighter;
}

/********************************* 字体对齐方式 ***********************/
.text-align-left {
  text-align: left;
}

.text-align-center {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

/********************************* 边框 ***********************/
.border-none {
  border: none;
}

/* --border-color-base: #ededed; */
.border-base {
  border: 1px solid var(--border-color-base);
}

/* --border-color-lighter: #DDDDDD; */
.border-lighter {
  border: 1px solid var(--border-color-lighter);
}

/* --border-color-base: #ededed; */
.border-bottom-base {
  border-bottom: 1px solid var(--border-color-base);
}

.border-color-primary {
  border-color: var(--color-primary);
}

.box-shadow-bottom {
  box-shadow: 0 1px 5px var(--border-color-base);
}

.box-shadow-top {
  box-shadow: 1px 0 5px var(--border-color-base);
}

/********************************* 卡片 ***********************/
.card-white {
  background: white;
  border-radius: var(--border-radius-big);
  padding: 10px;
}

.card-gray {
  background: #f8f8f8;
  border-radius: var(--border-radius-big);
  padding: 10px;
}

/********************************* 标签 ***********************/
.tag-primary,
.tag-gray,
.tag-white,
.tag-white-primary {
  border-radius: 20px;
  font-size: var(--font-size-min);
  padding: 5px 10px;
  line-height: 1;
}

.tag-gray {
  background: #f8f8f8;
  color: var(--color-text-secondary);
}

.tag-white {
  background: white;
  color: var(--color-text-secondary);
}

.tag-white-primary {
  background: white;
  color: var(--color-primary);
}

.tag-primary {
  background: #f5f5f5;
  color: var(--color-primary);
}

.tag-gray.active,
.tag-white.active {
  background: var(--color-primary);
  color: white;
}

/********************************* 分割线 ***********************/
.split-line {
  width: 100%;
  height: 1px;
  background: #ededed;
}

.split-line-vertical {
  width: 1px;
  height: 100%;
  background: #dddddd;
}

/********************************* margin间距 ***********************/
.margin-0 {
  margin: 0;
}

.margin-top-0 {
  margin-top: 0;
}

.margin-top-5 {
  margin-top: 5px;
}

.margin-top-10 {
  margin-top: 10px;
}

.margin-top-15 {
  margin-top: 15px;
}

.margin-top-20 {
  margin-top: 20px;
}

.margin-top-25 {
  margin-top: 25px;
}

.margin-top-30 {
  margin-top: 30px;
}

.margin-top-40 {
  margin-top: 40px;
}

.margin-bottom-0 {
  margin-bottom: 0;
}

.margin-bottom-2 {
  margin-bottom: 2px;
}

.margin-bottom-5 {
  margin-bottom: 5px;
}

.margin-bottom-10 {
  margin-bottom: 10px;
}

.margin-bottom-15 {
  margin-bottom: 15px;
}

.margin-bottom-20 {
  margin-bottom: 20px;
}

.margin-bottom-25 {
  margin-bottom: 25px;
}

.margin-bottom-30 {
  margin-bottom: 30px;
}

.margin-bottom-40 {
  margin-bottom: 40px;
}

.margin-bottom-50 {
  margin-bottom: 50px;
}

.margin-bottom-60 {
  margin-bottom: 60px;
}

.margin-left-5 {
  margin-left: 5px;
}

.margin-left-10 {
  margin-left: 10px;
}

.margin-left-15 {
  margin-left: 15px;
}

.margin-left-20 {
  margin-left: 20px;
}

.margin-left-25 {
  margin-left: 25px;
}

.margin-left-30 {
  margin-left: 30px;
}

.margin-right-5 {
  margin-right: 5px;
}

.margin-right-10 {
  margin-right: 10px;
}

.margin-right-15 {
  margin-right: 15px;
}

.margin-right-20 {
  margin-right: 20px;
}

.margin-right-25 {
  margin-right: 25px;
}

.margin-right-30 {
  margin-right: 30px;
}

/********************************* padding间距 ***********************/
.padding-0 {
  padding: 0;
}

.padding-2 {
  padding: 2px;
}

.padding-5 {
  padding: 5px;
}

.padding-10 {
  padding: 10px;
}

.padding-15 {
  padding: 15px;
}

.padding-20 {
  padding: 20px;
}

.padding-x-2 {
  padding-left: 2px;
  padding-right: 2px;
}

.padding-x-5 {
  padding-left: 5px;
  padding-right: 5px;
}

.padding-x-10 {
  padding-left: 10px;
  padding-right: 10px;
}

.padding-x-15 {
  padding-left: 15px;
  padding-right: 15px;
}

.padding-y-5 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.padding-y-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.padding-y-15 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.padding-y-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.padding-y-25 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.padding-y-30 {
  padding-top: 30px;
  padding-bottom: 30px;
}

/********************************* 省略号 ***********************/
/* 单行省略号 */
.text-ellipsis {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2行省略号 */
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3行省略号 */
.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/********************************* 按钮 ***********************/
.btn-color-primary,
.btn-color-gray,
.btn-color-white {
  border-radius: var(--border-radius-big);
  border: none;
  outline: none;
  padding: 10px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn-color-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-color-primary:hover {
  background: #ff970f;
  color: white;
}

.btn-color-gray {
  background-color: #ededed;
  color: var(--color-text-primary);
}

.btn-color-gray:hover {
  background-color: #f8f8f8c2;
  color: var(--color-text-primary);
}

.btn-color-white {
  background-color: white;
  color: var(--color-text-primary);
  border: 1px solid var(--border-color-base);
}

.btn-color-white:hover {
  background-color: var(--background-primary);
  color: var(--color-text-primary);
}

/********************************* 圆角 ***********************/
.radius-round {
  border-radius: 50%;
}

/* --border-radius-min: 4px; */
.radius-min {
  border-radius: var(--border-radius-min);
}

/* --border-radius-small: 6px; */
.radius-small {
  border-radius: var(--border-radius-small);
}

/* --border-radius-base: 8px; */
.radius-base {
  border-radius: var(--border-radius-base);
}

/* --border-radius-big: 10px; */
.radius-big {
  border-radius: var(--border-radius-big);
}

/* --border-radius-huge: 20px; */
.radius-huge {
  border-radius: var(--border-radius-huge);
}

.radius-xl {
  border-radius: 50px;
}

/********************************* 滑动容器 ***********************/
/* 横向滑动 */
.overflow-x-auto {
  display: block;
  width: 100%;
  overflow-x: auto;
}

/* 竖向滑动 */
.overflow-y-auto {
  display: block;
  width: 100%;
  overflow-y: auto;
}

.overflow-hidden {
  overflow: hidden;
}

/*************************************** 表单样式 ***********************/
/* 常用input */
.label-regular {
  margin-right: var(--space-base);
  color: var(--color-text-primary);
  font-size: var(--font-size-normal);
  font-weight: normal;
  line-height: 60px;
}

.input-regular::placeholder,
.textarea-regular::placeholder {
  color: var(--color-text-placeholder);
  font-size: var(--font-size-normal);
}

/* 常用input、textarea */
.input-regular,
.textarea-regular {
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-base);
  font-size: var(--font-size-normal);
  outline: none;
  padding: 15px 26px;
  width: 280px;
  color: var(--color-text-primary);
}

.input-regular {
  height: 60px;
}

.textarea-regular {
  height: 150px;
}
.input-radio {
  appearance: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color-base);
  background-color: var(--background-regular);
}
.input-radio:checked {
  background-color: var(--background-orange);
}
/*******************************************************************/
/* ul样式(无点) */
.ul-drop-none {
  margin: 0;
  padding: 0;
}

.ul-drop-none li {
  list-style: none;
}

/* ul样式(有点) */
.ul-drop {
  margin: 0;
  padding: 0 0 0 20px;
}

.ul-drop li {
  list-style: disc;
}

.ul-drop li::marker {
  font-size: 20px; /* 调整标记的字体大小 */
}

/* 行高 */
.line-height-1 {
  line-height: 1;
}

.line-height-1_5 {
  line-height: 1.5;
}

.line-height-2 {
  line-height: 2;
}

/* 鼠标显示手指 */
.cursor-pointer {
  cursor: pointer;
}

/* 鼠标悬浮背景 */
.hover-bg-primary:hover {
  background-color: var(--background-primary);
}

/* checkbox选择样式 */
.checkbox-custom[type='checkbox'],
.checkbox-custom[type='checkbox']:checked::before {
  cursor: pointer;
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  overflow: visible;
  outline: none;
  background: var(--color-primary);
  margin-right: 8px;
}

.checkbox-custom[type='checkbox']:checked::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
}

.checkbox-custom[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 13px;
  height: 12px;
  background-image: url(../images/checked.png);
  background-size: 13px 12px;
}

.height100 {
  min-height: calc(100vh - 187px);
}
